package com.wjr.bean;

import java.util.Objects;

/**
 * @Author: wjr
 * @Description:
 * @Date Created in  2020-09-01 14:01
 * @Modified By:
 */
public class User {
    private String userName;
    private String passWord;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    @Override
    public String toString() {
        return "User{" +
                "userName=" + userName +
                ", passWord=" + passWord +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        User user = (User) o;
        return userName == user.userName &&
                passWord == user.passWord;
    }

    @Override
    public int hashCode() {
        return Objects.hash(userName, passWord);
    }

    public User() {
    }

    public User(String userName, String passWord) {
        this.userName = userName;
        this.passWord = passWord;
    }
}
